package com.sky.controller.user;

import com.sky.dto.InheritorsDTO;
import com.sky.entity.Inheritors;
import com.sky.result.Result;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController("userInheritorsController")
@RequestMapping("/user/inheritors")
@Api(tags = "用户端传承人相关接口")
public class InheritorsController {

    /**
     * 根据id查询 传承人信息
     */
    @GetMapping("/{id}")
    public Result<Inheritors> get(@PathVariable String id) {
        return Result.success();
    }

    /**
     * 根据非遗id查询 传承人信息
     */
    @GetMapping
    public Result<List<Inheritors>> getAll(Integer id) {
        return Result.success();
    }

}
